package model.application.server.serviceinterface;

import java.lang.reflect.Method;

import java.util.List;

import javax.ejb.Remote;
import javax.ejb.Stateless;

import javax.interceptor.Interceptors;

import model.application.common.serviceinterface.GetTableIndexWS;

import model.views.common.VnIndexViewSDO;

import oracle.jbo.common.Diagnostic;
import oracle.jbo.common.sdo.SDOHelper;
import oracle.jbo.common.service.types.FindControl;
import oracle.jbo.common.service.types.FindCriteria;
import oracle.jbo.server.svc.ServiceContextInterceptor;
import oracle.jbo.server.svc.ServiceImpl;
import oracle.jbo.service.errors.ServiceException;

import oracle.webservices.annotations.PortableWebService;
// ---------------------------------------------------------------------
// ---    File generated by Oracle ADF Business Components Design Time.
// ---    Fri May 10 10:00:43 GMT+07:00 2013
// ---------------------------------------------------------------------
@Interceptors( { ServiceContextInterceptor.class })
@Stateless(name="model.application.common.GetTableIndexWSBean", mappedName="GetTableIndexWSBean")
@Remote(GetTableIndexWS.class)
@PortableWebService(targetNamespace="/model/application/common/", serviceName="GetTableIndexWS",
    portName="GetTableIndexWSSoapHttpPort", endpointInterface="model.application.common.serviceinterface.GetTableIndexWS")
public class GetTableIndexWSImpl extends ServiceImpl implements GetTableIndexWS {
    private static boolean _isInited = false;

    /**
     * This is the default constructor (do not remove).
     */
    public GetTableIndexWSImpl() {
        init();
        setApplicationModuleDefName("model.application.AppModule");
        setConfigurationName("GetTableIndexWS");
    }


    /**
     * Generated method. Do not modify. Do initialization in the constructor
     */
    protected void init() {
        if (_isInited) {
            return;
        }
        synchronized (GetTableIndexWSImpl.class) {
            if (_isInited) {
                return;
            }
            try {
                SDOHelper.INSTANCE.defineSchema("model/application/common/serviceinterface/", "GetTableIndexWS.xsd");
                _isInited = true;
            } catch (Exception ex) {
                Diagnostic.printStackTrace(ex);
            }
        }
    }

    /**
     * findVnIndexView1: generated method. Do not modify.
     */
    public List<VnIndexViewSDO> findVnIndexView1(FindCriteria findCriteria,
                                                 FindControl findControl) throws ServiceException {
        return (List<VnIndexViewSDO>)find(findCriteria, findControl,
                                          "VnIndexView1",
                                          VnIndexViewSDO.class);
    }
}
